﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateTel.aspx.cs" Inherits="ZLDC.Estate.TM.UpdateTel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>修改电话</title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript">
        function SubOk() {
            var ownerTel = document.getElementById("txtTel").value;
            if (ownerTel.length = 0 || ownerTel.replace(/(^\s*)|(\s*$)/g, "") == "") {
                alert("请手机号码！");
                return false;
            }
            var p1 = /^((1[0-9]{1}[0-9]{1})+\d{8})|(^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$)|(^([0-9]{3,5}\-)?([0-9]{3,8})?(\-[0-9]{3,8}))$/;
            if (ownerTel.substr(0, 1) == "1") {
                if (ownerTel.length != "11") {
                    alert("号码格式不正确，请检查输入的电话号码");
                    return  false;
                }
            }
            if (p1.test(ownerTel) == false && ownerTel != "") {
                alert("号码格式不正确，请检查输入的电话号码");
                return false;
            }
            
          }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
    
     <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td height="30" bgcolor="#f7f7f7" class="button1" style="padding-left: 10px;">
                <img src="../images/zlTitle.gif" width="13" align="absmiddle" />
                <span id="spanTitle">修改电话</span>                
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                用户密码修改
            </td>
            <td>
                <font color="red">提示:修改的是管理信息系统的密码</font>
            </td>
        </tr>
        <tr>
            <td align="right">
                旧密码:
            </td>
            <td>
                <input id="PwdOld" type="password" maxlength="8" size="10" name="oldpasswd" runat="server">
            </td>
        </tr>
        <tr>
            <td align="right">
                新密码:
            </td>
            <td>
                <input id="PwdNew1" tabindex="1" type="password" maxlength="8" size="10" name="txtPassWD"
                    runat="server">
            </td>
        </tr>
        <tr>
            <td align="right">
                新密码确认:
            </td>
            <td>
                <input id="PwdNew2" tabindex="2" type="password" maxlength="8" size="10" name="txtPassWDTWO"
                    runat="server">
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnSave" runat="server" CssClass="button_bak" Text="修改" 
                    onclick="btnSave_Click" />
            </td>
            <td>
                <asp:Label ID="MismatchLabel" runat="server" BackColor="Transparent" ForeColor="Red"
                    Visible="False">提示：密码输入错误，请重新输入</asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td>
                联系方式
            </td>
            <td>
                <font color="red">提示:将同时修改管理信息系统的电话</font>
            </td>
        </tr>
        <tr>
            <td align="right">
                手机:
            </td>
            <td>
                <asp:TextBox ID="tbTel" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                短号:
            </td>
            <td>
                <asp:TextBox ID="tbCurtMobile" runat="server"></asp:TextBox>公盘无短号
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnUpdate" runat="server" CssClass="button_bak" Text="修改" 
                    onclick="btnUpdate_Click" />
            </td>
            <td>
                <asp:Label ID="lblInfo" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
